package top.hcode.hoj.pojo.vo.coll;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.annotation.write.style.HeadStyle;
import lombok.Data;
import org.apache.poi.ss.usermodel.HorizontalAlignment;

import java.math.BigDecimal;

/**
 * @author orangej
 * @since 2025/3/15
 */
@Data
public class CollStudentScoreExportVO {
    @ExcelProperty(value = "学校", index = 0)
    @ContentStyle(horizontalAlignment = HorizontalAlignment.CENTER)
    @HeadStyle(horizontalAlignment = HorizontalAlignment.CENTER)
    private String schoolName;

    @ExcelProperty(value = "班级", index = 1)
    @ContentStyle(horizontalAlignment = HorizontalAlignment.CENTER)
    @HeadStyle(horizontalAlignment = HorizontalAlignment.CENTER)
    private String className;

    @ExcelProperty(value = "学生姓名", index = 2)
    @ContentStyle(horizontalAlignment = HorizontalAlignment.CENTER)
    @HeadStyle(horizontalAlignment = HorizontalAlignment.CENTER)
    private String userName;

    @ExcelProperty(value = "账号", index = 3)
    @ContentStyle(horizontalAlignment = HorizontalAlignment.CENTER)
    @HeadStyle(horizontalAlignment = HorizontalAlignment.CENTER)
    private String account;

    @ExcelProperty(value = "客观题得分", index = 4)
    @ContentStyle(horizontalAlignment = HorizontalAlignment.CENTER)
    @HeadStyle(horizontalAlignment = HorizontalAlignment.CENTER)
    private BigDecimal objectiveScore;

    @ExcelProperty(value = "主观题得分", index = 5)
    @ContentStyle(horizontalAlignment = HorizontalAlignment.CENTER)
    @HeadStyle(horizontalAlignment = HorizontalAlignment.CENTER)
    private BigDecimal subjectiveScore;

    @ExcelProperty(value = "总分", index = 6)
    @ContentStyle(horizontalAlignment = HorizontalAlignment.CENTER)
    @HeadStyle(horizontalAlignment = HorizontalAlignment.CENTER)
    private BigDecimal totalScore;

    @ExcelProperty(value = "用时（分钟）", index = 7)
    @ContentStyle(horizontalAlignment = HorizontalAlignment.CENTER)
    @HeadStyle(horizontalAlignment = HorizontalAlignment.CENTER)
    private Integer usedMinutes;
}
